import pytest
@pytest.fixture(scope="class")
def test_01():
    a = 5
    b = 6
    return (a, b)

@pytest.mark.usefixtures("test_01")
class TestNum:
    def test_02(self,test_01):
        c = test_01[0]
        d = test_01[1]
        assert c < d
        print("断言成功")
        
if __name__ =="__main__":
    pytest.main(["-vs","c:/Users/origi/Documents/python/Pytest_自动化框架/test02.py"])